#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>




void BubbleSort(int arr[],int size) {
	for (int i = 0; i < size-1 ; i++) {
		for (int j = 0; j <size-i-1 ; j++) {
			if (arr[j] > arr[j + 1]) {
				int tmp = arr[j];
				arr[j] = arr[j+1];
				arr[j+1] = tmp;
			}
		}
	}
}


int main() {
	int arr[10] = { 9,8,7,6,5,4,3,2,1,0 };
	int size = sizeof(arr) / sizeof(arr[0]);
	BubbleSort(arr, size);
	for (int i = 0; i < size; i++) {
		printf("%d ", arr[i]);
	}
	return 0;
}
